package com.jxl.domain.service;

import com.jxl.common.entity.PageResult;
import com.jxl.domain.entity.SubjectInfoBO;
import com.jxl.infra.basic.es.entity.SubjectInfoEs;

import java.util.List;


/**
 * 题目service
 */
public interface SubjectInfoDomainService {

    /**
     * 添加题目
     * @param subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 题目的分页查询
     * @param subjectInfoBO
     * @return
     */
    PageResult<SubjectInfoBO> querySubjectPage(SubjectInfoBO subjectInfoBO);

    /**
     * 查询详情
     * @param subjectInfoBO
     * @return
     */
    SubjectInfoBO querySubjectInfo(SubjectInfoBO subjectInfoBO);


    /**
     * 全文检索
     * @param subjectInfoDto
     * @return
     */
    PageResult<SubjectInfoEs> querySubejctInfoEs(SubjectInfoBO subjectInfoDto);

    /**
     * 排行榜数据
     * @return
     */
    List<SubjectInfoBO> getContributeList();
}
